package com.firebird.app.fekpsl.mvp.classroom

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by firebird on 2018/4/21.
 */
class QuestionPracticePresenter : BasePresenter<QuestionPracticeContract.Model, QuestionPracticeContract.View>(), QuestionPracticeContract.Presenter {

    override fun createModel(): QuestionPracticeContract.Model? = QuestionPracticeModel()

    override fun getAllPaperList(pageNo: Int) {
        mModel?.getAllPaperList(pageNo)?.ss(mModel, mView) {
            mView?.showAllPaperList(it.data)
        }
    }

}